﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="PromoteUser.aspx.cs" Inherits="admin_PromoteUser" %>
<%@ MasterType virtualpath="~/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <p>
        Return to admin
        <asp:HyperLink ID="HyperLink1" NavigateUrl="~/admin/Default.aspx" runat="server">Home</asp:HyperLink>
    </p>

<div style="margin-left: auto; margin-right:auto; border: solid 2px black; width: 50%">
        <asp:Label ID="Label1" runat="server" Text="Enter the user ID to which to add administrative privileges:"></asp:Label><br />
        <asp:TextBox ID="txtUserId" runat="server"></asp:TextBox><br />
        <asp:Button ID="btnLookupUser" runat="server" Text="Find Volunteer" 
            onclick="btnLookupUser_Click" /><br />
        <asp:Label ID="lblError" runat="server" Text="" ForeColor="Red"></asp:Label>
    <asp:Panel ID="pnlResults" runat="server" Visible="false">
        <asp:Label ID="Label2" runat="server" Text="Please select the user from the list or try again above:"></asp:Label>
        <asp:ListBox ID="lbUsers" runat="server"></asp:ListBox><br />
        <asp:Button ID="btnPromote" runat="server" Text="Promote to Admin" 
            onclick="btnPromote_Click" /><br /><br />
        </asp:Panel>
    
    </div>
</asp:Content>

